package com.akl.ssmspringboot.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName:
 * @Author: Guoxy
 * @Date: Created in 9:58 2018/12/3
 * @Version:1.0
 */
@Data
@TableName(value = "Login_log")
public class LoginLog extends Model<LoginLog> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户主键id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 登陆时间
     */
    @TableField("login_time")
    private Date loginTime;
    /**
     * 用户登录ip地址
     */
    @TableField("login_user_ip")
    private String loginUserIp;
    /**
     * 登录描述
     */
    @TableField("login_desc")
    private String loginDesc;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
